package com.chb.javabasic.Hutools;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.csv.CsvUtil;

import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Set;

public class convert {
    public static void main(String[] args) {
        int a = 1;
        String s = Convert.toStr(a);
        System.out.println(s);

        long[] arr = {1,2,3,4,5};
        String s1 = Convert.toStr(arr);
        System.out.println(s1.getClass());

        Integer[] arr1 = Convert.toIntArray(arr);
        System.out.println(Arrays.toString(arr1));

        String s2 = "2025-06-30";
        Date date = Convert.toDate(s2);
        System.out.println(date + " : " + s2.getClass());


        //转换为集合
        List<?> list = Convert.toList(arr);
        System.out.println(list.getClass() + "+" + list);

    }
}
